package com.gupt.youhd.entity;/*
@author name
@data 2023/4/8-12:59
*/


import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
public class CartItem {

    private int itemId;
    private int userId;

    private int productId;
    /**
     * 数量
     */
    private int quantity;
    private Date joinTime;
    private BigDecimal amount;
    /**
     *
     */
    private int checked;
    private Product product;

//    public CartItem(int itemId, int userId, int quantity, Date joinTime, BigDecimal amount, Product product) {
//        this.itemId = itemId;
//        this.userId = userId;
//        this.quantity = quantity;
//        this.joinTime = new Date();
//        this.amount = amount;
//        this.product = product;
//    }
}
